package mydesign.chapters01.v3;

import mydesign.chapters01.v3.behavior.KnifeBehavior;

/**
 * 宋江  调兵遣将
 */
public class TestMain {


    public static void main(String[] args) {
        梁山英雄 zhangfei = new 张飞();
        zhangfei.setWeaponBehavior(new KnifeBehavior());
        zhangfei.display();
        zhangfei.fight();

        梁山英雄 linchong = new 林冲();
        linchong.setWeaponBehavior(new KnifeBehavior());
        linchong.display();
        linchong.fight();


    }





}
